package visao;

public class principal extends javax.swing.JFrame {

    /** Creates new form principal */
    public principal() {
        initComponents();
        setLocationRelativeTo(null);
        setExtendedState(MAXIMIZED_BOTH);
//        Mudar Look
//        try {
//            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
//            SwingUtilities.updateComponentTreeUI(this);
//        } catch (Exception erro) {
//            JOptionPane.showMessageDialog(null, erro);
//        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jbCadHospede = new javax.swing.JButton();
        jbCadFuncionario = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jbDadosHospede = new javax.swing.JButton();
        jbDadosFuncionario = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jbSair = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jmCadastro = new javax.swing.JMenu();
        jmiHospede = new javax.swing.JMenuItem();
        jSeparator6 = new javax.swing.JPopupMenu.Separator();
        jmiEmpresa = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        jmiAndar = new javax.swing.JMenuItem();
        jmiApartamento = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        jmiFuncionario = new javax.swing.JMenuItem();
        jSeparator7 = new javax.swing.JPopupMenu.Separator();
        jmiHotel = new javax.swing.JMenuItem();
        jmConsulta = new javax.swing.JMenu();
        jmiHospedes = new javax.swing.JMenuItem();
        jSeparator5 = new javax.swing.JPopupMenu.Separator();
        jmiFuncionarios = new javax.swing.JMenuItem();
        jSeparator8 = new javax.swing.JPopupMenu.Separator();
        jmiEmpresas = new javax.swing.JMenuItem();
        jmRelatorio = new javax.swing.JMenu();
        jmSH = new javax.swing.JMenu();
        jmiSobreSH = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        jmiAjuda = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        jmiSair = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Rodo Hotel");
        setFocusableWindowState(false);

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));

        jPanel4.setBackground(new java.awt.Color(255, 255, 204));

        jPanel1.setBackground(new java.awt.Color(255, 255, 204));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Cadastro"));

        jbCadHospede.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbCadHospede.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images_icons/_ usuarios.gif"))); // NOI18N
        jbCadHospede.setText("Hóspede");
        jbCadHospede.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbCadHospedeActionPerformed(evt);
            }
        });

        jbCadFuncionario.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbCadFuncionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images_icons/_ usuarios.gif"))); // NOI18N
        jbCadFuncionario.setText("Funcionário");
        jbCadFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbCadFuncionarioActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jbCadHospede)
                .addGap(4, 4, 4)
                .addComponent(jbCadFuncionario)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jbCadHospede)
                .addComponent(jbCadFuncionario))
        );

        jPanel3.setBackground(new java.awt.Color(255, 255, 204));
        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Consulta"));

        jbDadosHospede.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbDadosHospede.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images_icons/_ usuarios.gif"))); // NOI18N
        jbDadosHospede.setText("Hóspede");
        jbDadosHospede.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbDadosHospedeActionPerformed(evt);
            }
        });

        jbDadosFuncionario.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbDadosFuncionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images_icons/_ usuarios.gif"))); // NOI18N
        jbDadosFuncionario.setText("Funcionário");
        jbDadosFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbDadosFuncionarioActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jbDadosHospede)
                .addGap(4, 4, 4)
                .addComponent(jbDadosFuncionario)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jbDadosHospede)
                .addComponent(jbDadosFuncionario))
        );

        jPanel5.setBackground(new java.awt.Color(255, 255, 204));
        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder("Sair"));

        jbSair.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images_icons/_ sair.gif"))); // NOI18N
        jbSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbSairActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jbSair, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jbSair)
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 488, Short.MAX_VALUE)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(357, Short.MAX_VALUE))
        );

        jmCadastro.setText("Cadastro");

        jmiHospede.setText("Hóspede");
        jmiHospede.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiHospedeActionPerformed(evt);
            }
        });
        jmCadastro.add(jmiHospede);
        jmCadastro.add(jSeparator6);

        jmiEmpresa.setText("Empresa");
        jmiEmpresa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiEmpresaActionPerformed(evt);
            }
        });
        jmCadastro.add(jmiEmpresa);
        jmCadastro.add(jSeparator3);

        jmiAndar.setText("Andar");
        jmiAndar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiAndarActionPerformed(evt);
            }
        });
        jmCadastro.add(jmiAndar);

        jmiApartamento.setText("Apartamento");
        jmiApartamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiApartamentoActionPerformed(evt);
            }
        });
        jmCadastro.add(jmiApartamento);
        jmCadastro.add(jSeparator4);

        jmiFuncionario.setText("Funcionário");
        jmiFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiFuncionarioActionPerformed(evt);
            }
        });
        jmCadastro.add(jmiFuncionario);
        jmCadastro.add(jSeparator7);

        jmiHotel.setText("Hotel");
        jmCadastro.add(jmiHotel);

        jMenuBar1.add(jmCadastro);

        jmConsulta.setText("Consulta");

        jmiHospedes.setText("Hóspedes");
        jmiHospedes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiHospedesActionPerformed(evt);
            }
        });
        jmConsulta.add(jmiHospedes);
        jmConsulta.add(jSeparator5);

        jmiFuncionarios.setText("Funcionários");
        jmiFuncionarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiFuncionariosActionPerformed(evt);
            }
        });
        jmConsulta.add(jmiFuncionarios);
        jmConsulta.add(jSeparator8);

        jmiEmpresas.setText("Empresas");
        jmConsulta.add(jmiEmpresas);

        jMenuBar1.add(jmConsulta);

        jmRelatorio.setText("Relatório");
        jMenuBar1.add(jmRelatorio);

        jmSH.setText("SH");

        jmiSobreSH.setText("Sobre SH");
        jmSH.add(jmiSobreSH);
        jmSH.add(jSeparator1);

        jmiAjuda.setText("Ajuda");
        jmSH.add(jmiAjuda);
        jmSH.add(jSeparator2);

        jmiSair.setText("Sair");
        jmiSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiSairActionPerformed(evt);
            }
        });
        jmSH.add(jmiSair);

        jMenuBar1.add(jmSH);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jbCadHospedeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbCadHospedeActionPerformed
        cadHospede cadHosp = new cadHospede();
        cadHosp.setVisible(true);
        // TODO add your handling code here:
    }//GEN-LAST:event_jbCadHospedeActionPerformed

    private void jbCadFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbCadFuncionarioActionPerformed
        cadFuncionario cadFunc = new cadFuncionario();
        cadFunc.setVisible(true);
        // TODO add your handling code here:
    }//GEN-LAST:event_jbCadFuncionarioActionPerformed

    private void jbSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbSairActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_jbSairActionPerformed

    private void jmiHospedeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiHospedeActionPerformed
        // TODO add your handling code here:

        cadHospede cadHosp = new cadHospede();
        cadHosp.setVisible(true);
    }//GEN-LAST:event_jmiHospedeActionPerformed

    private void jmiAndarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiAndarActionPerformed
        // TODO add your handling code here:

        cadAndar cadAnd = new cadAndar();
        cadAnd.setVisible(true);
    }//GEN-LAST:event_jmiAndarActionPerformed

    private void jmiApartamentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiApartamentoActionPerformed
        // TODO add your handling code here:

        cadApartamento cadApart = new cadApartamento();
        cadApart.setVisible(true);
    }//GEN-LAST:event_jmiApartamentoActionPerformed

    private void jmiFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiFuncionarioActionPerformed
        // TODO add your handling code here:

        cadFuncionario cadFunc = new cadFuncionario();
        cadFunc.setVisible(true);
    }//GEN-LAST:event_jmiFuncionarioActionPerformed

    private void jmiHospedesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiHospedesActionPerformed
        // TODO add your handling code here:

        pesquisaHospede p = new pesquisaHospede();
        p.setVisible(true);
    }//GEN-LAST:event_jmiHospedesActionPerformed

    private void jmiSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiSairActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_jmiSairActionPerformed

    private void jmiFuncionariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiFuncionariosActionPerformed
        // TODO add your handling code here:
        pesquisaFuncionario p = new pesquisaFuncionario();
        p.setVisible(true);
    }//GEN-LAST:event_jmiFuncionariosActionPerformed

    private void jmiEmpresaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiEmpresaActionPerformed
        // TODO add your handling code here:
        cadEmpresa cadEmpres = new cadEmpresa();
        cadEmpres.setVisible(true);
    }//GEN-LAST:event_jmiEmpresaActionPerformed

    private void jbDadosHospedeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbDadosHospedeActionPerformed
        // TODO add your handling code here:
        pesquisaHospede pHospede = new pesquisaHospede();
        pHospede.setVisible(true);
    }//GEN-LAST:event_jbDadosHospedeActionPerformed

    private void jbDadosFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbDadosFuncionarioActionPerformed
        // TODO add your handling code here:
        pesquisaFuncionario pFuncionario = new pesquisaFuncionario();
        pFuncionario.setVisible(true);
    }//GEN-LAST:event_jbDadosFuncionarioActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new principal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JPopupMenu.Separator jSeparator5;
    private javax.swing.JPopupMenu.Separator jSeparator6;
    private javax.swing.JPopupMenu.Separator jSeparator7;
    private javax.swing.JPopupMenu.Separator jSeparator8;
    private javax.swing.JButton jbCadFuncionario;
    private javax.swing.JButton jbCadHospede;
    private javax.swing.JButton jbDadosFuncionario;
    private javax.swing.JButton jbDadosHospede;
    private javax.swing.JButton jbSair;
    private javax.swing.JMenu jmCadastro;
    private javax.swing.JMenu jmConsulta;
    private javax.swing.JMenu jmRelatorio;
    private javax.swing.JMenu jmSH;
    private javax.swing.JMenuItem jmiAjuda;
    private javax.swing.JMenuItem jmiAndar;
    private javax.swing.JMenuItem jmiApartamento;
    private javax.swing.JMenuItem jmiEmpresa;
    private javax.swing.JMenuItem jmiEmpresas;
    private javax.swing.JMenuItem jmiFuncionario;
    private javax.swing.JMenuItem jmiFuncionarios;
    private javax.swing.JMenuItem jmiHospede;
    private javax.swing.JMenuItem jmiHospedes;
    private javax.swing.JMenuItem jmiHotel;
    private javax.swing.JMenuItem jmiSair;
    private javax.swing.JMenuItem jmiSobreSH;
    // End of variables declaration//GEN-END:variables
}
